package com.example.router.provider

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.tencent.mmkv.MMKV

/**
 * 服务具体实现
 */
@Route(path = "/provider/token")
class RouteProvideImpl:IRouteProvider{
    override fun getLoginToken(): String {
        var token = MMKV.defaultMMKV().decodeString("token")
        if(token.isNullOrEmpty()){
            return ""
        }
        return token
    }

    override fun init(context: Context?) {

    }
}